Function Reference

_GUICtrlComboGetLocale

Retrieve the current locale of the combo box

#Include <GuiCombo.au3>
_GUICtrlComboGetLocale($h_combobox)

 

Parameters

$h_combobox control id/control hWnd

 

Return Value

Returns the current Local of the combobox
same as @OSLang unless changed

 

Remarks

"0409" for U.S. English
see @OSLang for string values

 

Related

None.

 

Example


#include <GuiConstants.au3>
#include <GuiCombo.au3>

Opt('MustDeclareVars',1)

Dim $Combo,$Btn_Exit,$Status,$msg

GuiCreate("ComboBox Get Locale", 392, 254)

$Combo = GuiCtrlCreateCombo("", 70, 10, 270, 100,$CBS_SIMPLE)
GUICtrlSetData($Combo,"AutoIt|v3|is|freeware|BASIC-like|scripting|language")
$Btn_Exit = GuiCtrlCreateButton("Exit", 150, 180, 90, 30)
$Status = GUICtrlCreateLabel("",0,234,392,20,BitOR($SS_SUNKEN,$SS_CENTER))
GUICtrlSetData($Status,"Locale: " & _GUICtrlComboGetLocale($Combo))
GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE Or $msg = $Btn_Exit
            ExitLoop
    EndSelect
WEnd
Exit